package com.aplikata.evok.bo;

import java.util.HashSet;
import java.util.Set;

import com.aplikata.bo.Role;

/**
 * @ClassName: Qtnaire
 * @Description: TODO
 * @author Huyun
 * @date 15. 5. 2012. 14:06:23
 */
public class Qtnaire implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private Qtnaire parent;
	private String name;
	private String code;
	private String remark;
	private Integer sort;
	private String page;
	private String beanName;
	private Set<QtCategory> qtCategories = new HashSet<QtCategory>(0);
	private Set<Role> roles = new HashSet<Role>(0);
	private Set<Qtnaire> children = new HashSet<Qtnaire>(0);
	private Set<PatientQtnaire> patientQtnaires = new HashSet<PatientQtnaire>(0);
	
	public final static String QY_FIND_FIRST_LEVEL = "Qtnaire.findParent";
	public final static String QY_FIND_FIRST_LEVEL_BY_ROLE = "Qtnaire.findRoleQtnairesParent";
	public final static String QY_FIND_BY_ROLE = "Qtnaire.findRoleQtnaires";

	// Constructors

	/** default constructor */
	public Qtnaire() {
	}

	/** minimal constructor */
	public Qtnaire(Qtnaire parent) {
		this.parent = parent;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public Set<Role> getRoles() {
		return this.roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public Qtnaire getParent() {
		return parent;
	}

	public void setParent(Qtnaire parent) {
		this.parent = parent;
	}

	public Set<QtCategory> getQtCategories() {
		return qtCategories;
	}

	public void setQtCategories(Set<QtCategory> qtCategories) {
		this.qtCategories = qtCategories;
	}

	public Set<Qtnaire> getChildren() {
		return children;
	}

	public void setChildren(Set<Qtnaire> children) {
		this.children = children;
	}

	public Set<PatientQtnaire> getPatientQtnaires() {
		return patientQtnaires;
	}

	public void setPatientQtnaires(Set<PatientQtnaire> patientQtnaires) {
		this.patientQtnaires = patientQtnaires;
	}

}